inset
Returns a copy of this instance inset in the given directions. This is intended for dispatching insets to areas of the window that are smaller than the current area.
Example:
childView.dispatchApplyWindowInsets(insets.inset(childMargins));
Content copied to clipboard
Parameters
insets
the amount of insets to remove from all sides.
See also
@NonNull
Returns a copy of this instance inset in the given directions. This is intended for dispatching insets to areas of the window that are smaller than the current area.
Example:
childView.dispatchApplyWindowInsets(insets.inset(
childMarginLeft, childMarginTop, childMarginBottom, childMarginRight));
Content copied to clipboard
Return
the inset insets
Parameters
left
the amount of insets to remove from the left. Must be non-negative.
top
the amount of insets to remove from the top. Must be non-negative.
right
the amount of insets to remove from the right. Must be non-negative.
bottom
the amount of insets to remove from the bottom. Must be non-negative.